<?php
/**
 * YSimpleImage
 *
 * @category  Finlandia_Coctails
 * @author    Evgeny Utehin <utehin@ebola.com.ua>
 * @copyright 2013 Ebola Communications
 * @link      http://www.ebola.com.ua/
 */
require_once(Yii::getPathOfAlias('application.vendor.simpleimage.src.abeautifulsite') . DIRECTORY_SEPARATOR . 'SimpleImage.php');

use abeautifulsite\SimpleImage as SimpleImage;

/**
 * @see SimpleImage
 */
class YSimpleImage extends SimpleImage
{
    /**
     * @see SimpleImage::file_ext()
     */
    public function file_ext($filename)
    {
        if (!preg_match('/\./', $filename)) {
            return '';
        }

        return preg_replace('/^.*\./', '', $filename);
    }
}
